import { Global } from '../Global';
import { Entity } from './def/Entity';
import { State } from './def/State';

export class KeyEntity extends Entity {

    handleEvent() {
        Global.em.removeEntity(Global.fm.getFloor(), this)
        Global.hero._heroState.keys[this.type] += 1
        Global.popUtil.popUp('你获得了一把钥匙')
        return {
            move: true,
            cartoon: false
        }
    }

}

